/*

	Hernan Rivas Acosta
		hernanrivasacosta@gmail.com

	Licenced under the Mozilla Public Licence
		http://www.mozilla.org/MPL/MPL-1.1.html

	Hosted on Google Code
		http://code.google.com/p/as3localization/

*/
package org.her.localization.utils.events
{
	import flash.events.Event;

	public class LocalizationEvent extends Event
	{

		public static const CHANGED:String = 'CHANGED';

		private var _currentLanguage:String;
			public function get currentLanguage ():String { return _currentLanguage; }

		public function LocalizationEvent (type:String, currentLanguage:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			_currentLanguage = currentLanguage;
			super(type, bubbles, cancelable);
		}

		public override function clone ():Event
		{
			return new LocalizationEvent(type, _currentLanguage, bubbles, cancelable);
		}

	}
}